import http from "../common/http.js";
export default {
  //获取订单列表接口
  getOrderList: (data, needLoading) => {
    return http.POST("/local-delivery/get-order-list", data, needLoading);
  },
	//获取订单列表接口
  scanGetOrder: (data, needLoading) => {
    return http.POST("/local-delivery/scan-get-order", data, needLoading);
  },
  //确认取货接口
  confirmAdd: (data, needLoading) => {
    return http.POST("/local-delivery/arrive-store", data, needLoading);
  },
  //订单送达接口
  orderAdd: (data, needLoading) => {
    return http.POST("/local-delivery/order-confirm", data, needLoading);
  },
  //骑手切换状态
  changeStatus: (data, needLoading) => {
    return http.POST("/local-delivery/courier-status", data, needLoading);
  },
  //更改骑手信息
  editInfo: (data, needLoading) => {
    return http.POST("/local-delivery/setting", data, needLoading);
  },
  //获取提现订单数
  getCashInfo: (data, needLoading) => {
    return http.POST("/local-delivery/cash-info", data, needLoading);
  },
  //获取账户明细列表
  getCashDetailList: (data, needLoading) => {
    return http.GET("/local-delivery/account-log-list", data, needLoading);
  },
  //获取提现明细列表
  getCashList: (data, needLoading) => {
    return http.GET("/local-delivery/cash-list", data, needLoading);
  },
  //提现申请
  submitCash: (data, needLoading) => {
    return http.POST("/local-delivery/cash-apply", data, needLoading);
  },
  //获取订单列表
  getInfoList: (data, needLoading) => {
    return http.GET("/local-delivery/total-order", data, needLoading);
  },
  //骑手申请
  applyRider: (data, needLoading) => {
    return http.POST("/local-delivery/apply-courier", data, needLoading);
  },
  getApplyRider: (data, needLoading) => {
    return http.GET("/local-delivery/apply-courier", data, needLoading);
  },
  //骑手接单
  orderBind: (data, needLoading) => {
    return http.POSTJSON("/local-delivery/order-bind", data, needLoading);
  },
  getCourierInfo: (data, needLoading) => {
    return http.GET("/local-delivery/get-courier-info", data, needLoading);
  },
  orderRiverComment: (data, needLoading) => {
    return http.POST("/local-delivery/order-river-comment", data, needLoading);
  },
  riderInfo: (data, needLoading) => {
    return http.GET("/local-delivery/rider-info", data, needLoading);
  }
};
